import request from '@/utils/request'

// 查询非遗项目特色列表
export function listFeatures(query) {
  return request({
    url: '/books/features/list',
    method: 'get',
    params: query
  })
}

// 查询非遗项目特色详细
export function getFeatures(projectFeaturesId) {
  return request({
    url: '/books/features/' + projectFeaturesId,
    method: 'get'
  })
}

// 新增非遗项目特色
export function addFeatures(data) {
  return request({
    url: '/books/features',
    method: 'post',
    data: data
  })
}

// 修改非遗项目特色
export function updateFeatures(data) {
  return request({
    url: '/books/features',
    method: 'put',
    data: data
  })
}

// 删除非遗项目特色
export function delFeatures(projectFeaturesId) {
  return request({
    url: '/books/features/' + projectFeaturesId,
    method: 'delete'
  })
}
